<?php
//全部配置
$config_arr = array(
    'version' => array(
        'js' => '0.1',
        'css'=> '0.1'
    ),
    'redis' => array(//Redis缓存配置
        'user' =>
        array (
            'node_01' =>
            array (
                'master' => '192.168.83.219:8201',//50MB
            ),
        ),
        'log' =>
        array (
            'node_01' =>
            array (
                'master' => '192.168.83.219:8202',//50MB
            ),
        )
    ),
    'db' => array(//数据库配置
        'default'     =>  array(//mysql 数据库 配置 (推荐使用)
            'dbtype'    =>  'mysql',
            'dbuser'    =>  'u140953134_wf',
            'dbpswd'    =>  'u140953134_wf',
            'dbname'    =>  'u140953134_wf',
            'dbhost'    =>  'mysql.iguesth.com',
        ),
        'oracle'  =>  array(//oracle 数据库 配置
            'dbtype'    =>  'oci',
            'dbuser'    =>  'whoopsfeed',
            'dbpswd'    =>  'whoopsfeed',
            'dbname'    =>  'whoopsfeed',
            'dbhost'    =>  '',
        )
    )
);

if(CURR_HOST == 'home.whoopsfeed.com'){//家里本机XAMPP环境
    $config_arr['db']['default'] = array(
        'dbtype'    =>  'mysql',
        'dbuser'    =>  'root',
        'dbpswd'    =>  '',
        'dbname'    =>  'wf2013',
        'dbhost'    =>  'localhost',
    );
}

if(CURR_HOST == '192.168.83.219'){//公司自己虚拟机环境
    $config_arr['db']['default'] = array(
        'dbtype'    =>  'mysql',
        'dbuser'    =>  'admin',
        'dbpswd'    =>  '12345678',
        'dbname'    =>  'wf2013',
        'dbhost'    =>  'localhost',
    );
}

return $config_arr;

?>